/**
 * This class represents the UI (Singleton)
 * 
 * @author Konrad Paumann
 * @author Bernhard Denner
 * @author Maximilian Csuk
 * 
 * $Revision$ 
 * $Date$
 * 
 */

public class UI {
	/*
	 * variables
	 */
	private static UI instance;
	
	/*
	 * default-constructor
	 */
	private UI() {}
	
	/*
	 * get the instance of the UI 
	 * 
	 * @return the instance
	 */
	public static UI getInstance() {
	    if (UI.instance == null) 
	    	UI.instance = new UI();
	    return UI.instance;
	}
	
	public void display(Displayable object) {
		assert object != null;
		 System.out.println(object.getDisplayString());
	}
	
	public void display(String string) {
		System.out.println(string);
	}
}
